// 入口js文件
import Vue from 'vue'
import App from './App.vue'
import {Button} from 'mint-ui'
import router from './router/index'
import store from './store'
import './mock/mockServe' // 加载mockServe
// 注册全局组件标签
Vue.component(Button.name, Button)
// 引入懒加载
// eslint-disable-next-line import/first
import VueLazyload from 'vue-lazyload'
// 使用并配置懒加载
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: './static/lazyload/error.jpg',
  loading: './static/lazyload/loading.gif',
  attempt: 1
})
// eslint-disable-next-line no-new
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
